package Demo08;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.Scanner;

public class Demo08 {
    public static void main(String[] args) {


        while (true){
            System.out.println("请输入");

            Scanner sc = new Scanner(System.in);

            String info = sc.next();
            if (info.equals("n"))
                break;
            else {
                LocalDateTime now = LocalDateTime.now();
                System.out.println( now +"退出循环输入n");
            }


        }




    }
}
